<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="../assets/js/vue.js"></script>
    <title>vue.extend-扩展实例构造器</title>
</head>

<body>
    <h1>vue.extend-扩展实例构造器</h1>
    <hr>
    <author></author>
    <div id="author"></div>
    <script type="text/javascript">
        var authorExtend = Vue.extend({
            template: "<p><a :href='authorUrl'>{{authorName}}</a></p>",
            data: function () {
                return {
                    authorName: 'JSPang',
                    authorUrl: 'http://www.jspang.com'
                }
            }
        });
        new authorExtend().$mount('author');
        new authorExtend().$mount('#author');
    </script>
</body>

</html>